-- GENERATED SPELL FOR [Maraudine Stormer] --


function spell0_4658(pUnit, Event) --@Jumping Lightning,n/a--
pUnit:FullCastSpellOnTarget(9654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4658', 3000, 1)
end

function spell1_4658(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(8293,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4658', 17500, 1)
end

function spell2_4658(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(8788,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4658', 0, 1)
end

function Sorts_4658(pUnit, Event)
local choix_sorts_4658 = math.random(0, 2)
if choix_sorts_4658 == 0 then
pUnit:RegisterEvent('spell0_4658', 1, 1)
end
if choix_sorts_4658 == 1 then
pUnit:RegisterEvent('spell1_4658', 1, 1)
end
if choix_sorts_4658 == 2 then
pUnit:RegisterEvent('spell2_4658', 1, 1)
end
end

function mob4658_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4658', math.random(1500, 3000), 1)
end

function mob4658_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4658_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4658_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4658, 1, 'mob4658_Action')
RegisterUnitEvent(4658, 2, 'mob4658_Leave')
RegisterUnitEvent(4658, 3, 'mob4658_Kill')
RegisterUnitEvent(4658, 4, 'mob4658_Die')
